
weinit();

function weinit(){
	$('.weibiNum').html(getweibi()+'个');
	
			var httpHost = getHttpHost();	
    		var token=getToken();
    		$.post(httpHost+'/index/Base/getWeiBi.html',{status:2},function(d){
    			
		      	var da=JSON.parse(d);
		      	var data=da.data;
		      	var l='';
		      	for(var i=0;i<data.length;i++){
		      		l+=' <div class="coupons clearfloat box-s"><div class="list clearfloat fl"><div class="left clearfloat fl">'+data[i]['value']+'</div><div class="right clearfloat fl box-s"> <p class="tit"  style="line-height: 0.3rem">'+data[i]['action']+'</p><p class="time" style="line-height: 0.4rem">  时间：'+getLocalTime(data[i]['date'])+'</p></div></div> </div>';
		      	}
		      	$('.tab-pal').html(l);
		      	
		    
		      
		    })
	
}



